package com.video.controller;

import com.video.common.lang.Result;
import com.video.entity.Industry;
import com.video.service.IndustryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author maomao
 */
@RestController
@RequestMapping("/industry")
public class IndustryController {

    @Resource
    private IndustryService industryService;

    @GetMapping("/list")
    public Result industryList() {
        List<Industry> industryList = industryService.list();

        return Result.success(200, "操作成功", industryList);
    }

}
